package org.gwt.pluginframework.common.exception;

import org.gwt.pluginframework.common.IPlugin;

public class PluginException extends Exception {

	private static final long serialVersionUID = 1131276044460247284L;
	
	private IPlugin plugin;

	public PluginException(IPlugin plugin, Exception e) {
		super(e);
		this.plugin = plugin;
	}
	
	public PluginException(IPlugin plugin, String message) {
		super(message);
		this.plugin = plugin;
	}
	
	public PluginException(IPlugin plugin, String message, Exception e) {
		super(message, e);
		this.plugin = plugin;
	}
	
	public IPlugin getPlugin() {
		return plugin;
	}
}
